import React, { Component } from 'react'
import Styles from './index.less'
export default class Banner extends Component {
    constructor() {
      super()
    }
    render() {
      const { children, backgroundImg } = this.props
      return (
        <div className={Styles.banner} style={{background: `url("${backgroundImg}") center -1px / cover no-repeat fixed`}}>
          <div className={Styles.container}>
            {
              children
            }
          </div>
        </div>
      )
    }
  }